package com.example.spring_boot_demo.commons.enums;

import lombok.Getter;

/**
 * 统一返回结果状态信息类
 */
@Getter
@SuppressWarnings("all")
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    NO_LOGIN(401,"登录失效"),
    FAIL(500, "失败");


    private Integer code;
    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
